/*
 *  tf_dialog.h
 *  Perceel
 *
 *  Created by Nicola Gigante on 19/03/08.
 *  Copyright 2008 Nicola Gigante. All rights reserved.
 *
 */

#ifndef __TF_DIALOG_H__
#define __TF_DIALOG_H__

#include <QDialog>
#include "ui_tfdialog.h"

#include "tf_listmanager.h"

class TFDialog : public QDialog, Ui::TFDialog
{
	Q_OBJECT
	
	TF m_tf;
	
public:
	TFDialog(QWidget *parent = NULL);
	
	void setTF(TF tf) { m_tf = tf; tfRenderer->setTF(tf); }
	TF tf() const { return m_tf; }
	
private:
	bool is_selecting; // Workaround for recursion of spin's valueChanged signal
	
private slots:
	void addRoot();
	void addPole();
	void remove();
	void selection();
	void valueChanged();
};

#endif
